package com.example.customizedgroupmessage;


import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.content.Intent;
import android.widget.Button;

public class TemplateBoxActivity extends Activity {

	public static final int REQUEST_CODE_SMSTEMPLATEBOX=3002;
	public static final int REQUEST_CODE_MAILTEMPLATEBOX=3004;
	//SMSDBHelper mHelper; 
	//SQLiteDatabase db;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.template_box_activity);
		
		Button btnSMSBox = (Button)findViewById(R.id.btnSMSBox);
		btnSMSBox.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v){
				Intent intent = new Intent(getBaseContext(), SMSTemplateBox.class);
				startActivityForResult(intent, REQUEST_CODE_SMSTEMPLATEBOX);
			}
		});
		Button btnMailBox = (Button)findViewById(R.id.btnMailBox);
		btnMailBox.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v){
				Intent intent = new Intent(getBaseContext(), MailTemplateBox.class);
				startActivityForResult(intent, REQUEST_CODE_MAILTEMPLATEBOX);
			}
		});

		
		
		
		
		// sms db 삭제
		//mHelper = new SMSDBHelper(this);
		//db = mHelper.getWritableDatabase();
		//db.execSQL("DELETE FROM sms;");
		//db.execSQL("DROP TABLE IF EXISTS sms");
		//mHelper.close();
	}


	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}




